package leetcode;

import java.util.Arrays;

public class Pro0101 {

    public static void main(String[] args) {
        System.out.println(isUnique("kzwunahkiz"));
    }

    public static boolean isUnique(String astr) {
        char[] arr = astr.toCharArray();
        Arrays.sort(arr);
        for(int i = 0; i < arr.length - 1; i++) {
            if (arr[i] == arr[i + 1]) {
                return false;
            }
        }
        return true;
    }
}
